package com.eazykitchen.entity;

import com.github.pagehelper.PageInfo;

import java.util.List;

public class Paginating<T> {
    //每一页显示条数
    private String limit;
    //当前页数
    private String page;
    //总计页数
    private String pages;
    //数据总条数
    private String total;
    //数据
    private List<T> list;
    public Paginating(PageInfo p){
        limit=p.getPageSize()+"";
        page=p.getPageNum()+"";
        pages=p.getPages()+"";
        total=p.getTotal()+"";
        this.list= p.getList();
    }

    public String getLimit() {
        return limit;
    }

    public void setLimit(String limit) {
        this.limit = limit;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getPages() {
        return pages;
    }

    public void setPages(String pages) {
        this.pages = pages;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}